

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="/asserts/vendor/bootstrap-3.4.1-dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="/asserts/vendor/font-awesome-4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="/asserts/css/index.css">
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-md-12 header">
            <img src="/asserts/img/3.png" alt="logo" class="logo"/>
            <h1>java实训团队协作简单案例</h1>
            <span class="login-user" >
                <i class="fa fa-user"></i>
                <a class="username" href="/?target=resume"></a>
                          张三</span>
        </div>
    </div>
    <div class="row">
        <div class="col-md-3">
            <ul class="side-menu">
                <li>
                    <i class="fa fa-paw"></i>
                    <a href="/?target=goods-list">商品管理</a>
                </li>
                <li>
                    <i class="fa fa-users"> </i>
                    <a href="/?target=user-list">用户管理</a>
                </li>
                <li>
                    <i class="fa fa-cog"> </i>
                    <a href="/?target=access-manager">权限管理</a>
                </li>
            </ul>
        </div>
        <div class="col-md-9">
            <jsp:include page="${t}"/>
        </div>
    </div>
</div>
<script>
    window.addEventListener('load', () => {
        $.ajax({
            url: '/userinfo',
            method: 'get',
            success(res) {
                $('.username').text(res.name);
            },
        });
    });
</script>

</body>
</html>
